/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package testGUI;

import GUI.AddNewUser;
import GUI.MainFrame;
import javax.swing.UIManager;
import junit.framework.TestCase;
import model.Database;

/**
 *
 * @author JArik
 */
public class testAddNewUser extends TestCase{


    public void testAddNewUser() throws Exception
    {
        UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
        Database.connect("dogy", "root", "");

        AddNewUser newUser = new AddNewUser(new MainFrame(null),null, null);
        newUser.setVisible(true);
        while(newUser.isVisible()) { Thread.sleep(100);}
    }

}
